var uname = $.cookie('petname')
if(uname){
		$('#login').find('span').last().text(uname)
}
$('.btn').click(function(){
	console.log(1)
	
   
	var datas=$('textarea').serialize()
	console.log(datas)
	$.post({
		url:'/ask',
		data:datas,
		success:function(data){
			if (data.code == 'success') {
				alert(data.message)
				location.href='index.html'
			} else{
				alert(data.message)
		}
		
	}
})
})